<!-- 备品表格 -->

<template>
  <div>
    <MajorTitle :title="MAP.TABLE_NAME" />

    <WebTable :fullCutHeight="56">
      <RowDate label="时间" bind="time" width="auto" />
      <RowText label="备品名称" bind="assetName" />
      <RowText label="备品型号" bind="assetCode" />
      <RowNum label="数量" bind="num" />
      <RowText label="工单编号" bind="workOrderCode">
        <template #default="{ row, text }">
          <BtnText :title="text" @click="windowDetail(row.workOrderId)" />
        </template>
      </RowText>
      <RowText label="处理人" bind="userName" />
    </WebTable>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import mixDetailToTable from '@admin/components/detail/mixDetailToTable'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'BackupTable',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [mixDetailToTable('', 'DetailRepair')],
}
</script>
